package ads.pin.pinmon.entity;

import java.io.Serializable;

import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;

public class GameObject implements Serializable {

	private static final long serialVersionUID = 2070276066307992660L;

	protected Integer m_id;
	protected String m_name;

	public final Vector2 m_position;
	public final Rectangle m_bounds;

	public GameObject(float x, float y, float width, float height) {
		this.m_position = new Vector2(x, y);
		this.m_bounds = new Rectangle(x - width / 2, y - height / 2, width,
				height);
	}

	public Integer getId() {
		return m_id;
	}

	public void setId(Integer id) {
		this.m_id = id;
	}

	public String getName() {
		return m_name;
	}

	public void setName(String name) {
		this.m_name = name;
	}
}
